import axios from 'axios';

const instance = axios.create({
  baseURL: 'https://api.duyiedu.com',
});
instance.interceptors.request.use(
  (config) => ({
    ...config,
    params: {
      ...config.params,
      appkey: 'hesong_1618800008142',
    },
  }),
  (error) => Promise.reject(error),
);

instance.interceptors.response.use(
  (response) => response,
  (error) => Promise.reject(error),
);
export default instance;
